#tick
execute as @e[tag=generic_arrow,type=arrow] at @s run function dab:system/generic_arrow/command/tick with entity @s item.components."minecraft:custom_data"

#flying
execute as @e[tag=generic_arrow,type=arrow,nbt={inGround:false}] at @s run function dab:system/generic_arrow/command/flying with entity @s item.components."minecraft:custom_data"